package com.game.majiang.vo;

import java.sql.Types;

import com.game.server.db.Parameter;
import com.game.server.db.ParameterType;
import com.game.server.db.SqlHelper;
import com.game.server.db.SqlHelperwrite;

public class ConsumptionInformationVo {

	public static boolean insertintoConsumptionInformation(int type,int uid,int money) {
		
		String sql = "INSERT INTO consumptioninformation (type,uid,money) VALUES (?,?,?)";
		Parameter p1 = new Parameter(Types.INTEGER, type, ParameterType.Input);
		Parameter p2 = new Parameter(Types.INTEGER, uid, ParameterType.Input);
		Parameter p3 = new Parameter(Types.INTEGER, money, ParameterType.Input);
		int count = SqlHelperwrite.execute(sql, p1,p2,p3);
		if (count > 0) {
			return true;
		}
		return false;
	}
	
}
